package com.gw.booking.dto.common;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Pattern;

public class UserForgetPasswordeDto {
    @ApiModelProperty(value = "注册手机号", required = true) 
    @NotEmpty
    private String mobile;
    
    @ApiModelProperty(value = "类型【enterprise:企业，staff:员工】", required = true, allowableValues = "staff,enterprise")
    @NotEmpty
    private String type;

	@ApiModelProperty(value="新密码,6位及以上英数", required = true)
	@NotEmpty
	@Pattern(regexp = "[0-9a-zA-Z]{6,}")
	private String newPassword;
	
	
	@ApiModelProperty(value="验证码", required = true)
	@NotEmpty
	private String captcha;


	public String getNewPassword() {
		return newPassword;
	}


	public void setNewPassword(String newPassword) {
		this.newPassword = newPassword;
	}


	public String getCaptcha() {
		return captcha;
	}


	public void setCaptcha(String captcha) {
		this.captcha = captcha;
	}


    public String getMobile() {
        return mobile;
    }


    public void setMobile(String mobile) {
        this.mobile = mobile;
    }


    public String getType() {
        return type;
    }


    public void setType(String type) {
        this.type = type;
    }
}
